package com.bjpowerrnode.javase.string;

public class SubStringTest {
    public static void main(String[] args) {
        String str = "Capture001.png";
        String substring = str.substring(str.lastIndexOf(".")+1);
        System.out.println(substring);

        boolean contains = str.contains(".");
        System.out.println(contains);

    }
}
